package com.sky.pay.service;

import com.sky.pay.api.request.RefundRequest;
import com.sky.pay.vo.Refund;

import java.util.List;

/**
 * @author yangsk
 */
public interface RefundService {

    /**
     * 生成用户退款单
     * @param request
     */
    Refund createRefundOrder(RefundRequest request);

    /**
     * 更新退款单状态
     * @param bodyAsString
     */
    void updateRefundOrder(String bodyAsString);

    List<Refund> getNoRefundOrderByDuration(int minutes);
}
